<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/1/27 0027
 * Time: 23:25
 */

//require_once 'hello.php';
//$h = new Hello();//使用类
//$h->sayHello();//调用方法
//
//
//$a = new Desktop();
//$a->work();

//require_once 'aaa/Hello.php';//访问不同的命令空间
//require_once 'bbb/Hello.php';
//$h = new aaa\Hello();
//$h->sayHello();
//
//$h1 = new bbb\Hello();
//$h1->sayHello();

require_once 'Man.php';

//$m =new Man(11,'world');
//echo $m->getName();

//Man::sayHelo();//访问静态 方法
//for($i=0;$i<200;$i++){
//    new people(10,'hello');
//}
$m =new Man(10,'111111111');
$m->hi();